#include <stdbool.h>
#ifndef __SEQLIST_H_
#define __SEQLIST_H_
#define ERROE_CHECK(ret, num, msg) \
    {                              \
        if (ret == num)            \
        {                          \
            perror(msg);           \
            return ret;            \
        }                          \
    }
#define LEN 16
typedef int type;

typedef struct seqList
{
    type data[LEN];
    int count;
} LT;
// 初始化
LT *createList();
// add
bool insertList(LT *header, type data);
// show
void showList(LT *header);
// full
bool isFullList(LT *header);
// empty(judge list!!!!!not point)
bool isEmptyList(LT *header);
// length
int lengthList(LT *header);
// select
int selectListVal(LT *header, type val);
// change
void changeListVal(LT *header, type valSrc, type valDest);
// del 按值删除,删第一个
void delListVal(LT *header, type val);
void init_header(LT *header);
// 清空free
void freeList(LT **header);
#endif
